package com.wang.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.book.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface BookMapper extends BaseMapper<Book> {
    @Select("SELECT EXISTS(SELECT 1 FROM booktype WHERE no = #{typeNo})")
    boolean existsType(Integer typeNo);
}